home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / VehicleQ.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  875b  |  36 lines

  1. #ifndef VEHICLEQ_H
  2. #define VEHICLEQ_H
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/VehicleQ.h,v 3.0 90/05/15 22:44:12 kgorlen Rel $
  5.  
  6. // VehicleQ.h -- Vehicle Queue LinkedList
  7.  
  8. #ifndef MI
  9. #define MI
  10. #endif
  11.  
  12. #include "LinkedList.h"
  13.  
  14. class QLink;
  15. class Iterator;
  16.  
  17. class VehicleQ: public LinkedList {
  18.     DECLARE_MEMBERS(VehicleQ);
  19. #ifndef BUG_38
  20. // internal <<AT&T C++ Translator 2.00 06/30/89>> error: bus error (or something nasty like that)
  21. protected:              // storer() functions for object I/O
  22.     virtual void storer(OIOofd& fd) const
  23.       { LinkedList::storer(fd); };
  24.     virtual void storer(OIOout& strm) const
  25.       { LinkedList::storer(strm); };
  26. #endif
  27. protected:
  28.     virtual Link& linkCastdown(Object&) const;
  29. public:
  30.     VehicleQ() {}
  31.     virtual void addVehicle(QLink&);
  32.     virtual void removeVehicle(QLink&);
  33. };
  34.  
  35. #endif
  36.